package com.huatai.model.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.huatai.model.entity.UploadTaskEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.ResultType;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 分片上传-分片任务记录(UploadTask)表数据库访问层
 *
 * @author xuzy
 */

@Mapper
public interface UploadTaskMapper extends BaseMapper<UploadTaskEntity> {

	@Select("select * from tb_upload_task where file_identifier = #{fileIdentifier} order by create_time desc limit 0,1")
	UploadTaskEntity getByFileIdentifier(String fileIdentifier);

}

